package cn.lijiajia3515.cairo.auth.modules.role;

import cn.lijiajia3515.cairo.core.business.Business;
import lombok.Getter;
import lombok.experimental.Accessors;

@Getter
@Accessors(fluent = true)
public enum RoleBusiness implements Business {
	/**
	 * 业务默认成功结果
	 */
	NotModify("不允许编辑"),

	NotDelete("岗位不可删除"),
	;

	public final boolean success;
	public final String code = "Role".concat(name());
	public final String message;


	RoleBusiness(String message) {
		this.success = false;
		this.message = message;
	}

	RoleBusiness(boolean success, String message) {
		this.success = success;
		this.message = message;
	}
}
